package com.example.jib;

import com.example.jib.mapper.UserMapper;
import com.example.jib.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class HelloJibFromApiComponent {
    @Autowired
    private UserMapper userMapper;

    public String getHelloFromApi() {
        return "Hello from API component.";
    }

    public User get(){
        return userMapper.user();
    }
}
